<?php

namespace app\redis;

trait Key
{
    // system
    public static $SYS_SHOW_TEST    = 'sys-show-test';
    public static $SYS_INFO         = 'sys-info';

    // ----------------------------------------------------------------

    // uni page
    public static $PAGE_HOME         = 'page-home';
    public static $PAGE_GROUP        = 'page-group';
    public static $PAGE_MERCHANT     = 'page-merchant';
    public static $PAGE_CART         = 'page-cart';
    public static $PAGE_CENTER       = 'page-center';
    public static $PAGE_CATEGORY     = 'page-category';

    // category
    public static $CATEGORIES           = 'categories';
    public static $CATEGORIES_BY        = 'categories_by_';
    public static $CATEGORIES_PRODUCT   = 'categories_product_';

    // brand
    public static $BRAND                = 'brand_';
    public static $BRAND_LIST           = 'brand_list_';

    // area
    public static $AREA                 = 'area_';
    public static $AREA_PRODUCT         = 'area_product_';

    // product
    public static $PRODUCT_LIKE         = 'product_like';
    public static $PRODUCT_LIST         = 'product_list_';
    public static $PRODUCT_DETAIL       = 'product_detail_';

    // merchant
    public static $MERCHANT             = 'merchant_';
    public static $MERCHANT_TYPE        = 'merchant_type_list';
    public static $MERCHANT_VIEW        = 'merchant_view_';

    // group
    public static $GROUP                = 'group_';
    // public static $GROUP_VIEW           = 'group_view_';

    // ----------------------------------------------------------------

    public static $SEARCH_HOT           = 'search_hot';

    // ----------------------------------------------------------------

    // user
    public static $USER_QRCODE          = 'user_qrcode_';
    public static $SUBSCRIBE            = 'subscribe';
    public static $USER_SERVICE         = 'user_service';
    public static $USER_ABOUT           = 'user_about';
}